Check if an entry of enumeration is in use

Hi,

I want to ckeck if an entry of an enumeration type is in use with in a module. Alpha={A, B, C} I want to check if C is selected in an object of a module.

I can iterate all objects and find this out. But, is there any optimized solution?
SystemAdmin - Thu Jul 30 12:11:40 EDT 2009

Re: Check if an entry of enumeration is in use
SystemAdmin - Thu Jul 30 14:01:39 EDT 2009

Use the filter to find objects which have a value of C.

Re: Check if an entry of enumeration is in use
llandale - Thu Jul 30 14:30:03 EDT 2009

Of course you will need to poll all Objects to see if any have that value. You'd use 'if (isMember(o, "C"))' to find that out.

  • Louie

Re: Check if an entry of enumeration is in use
SystemAdmin - Thu Jul 30 14:51:18 EDT 2009

llandale - Thu Jul 30 14:30:03 EDT 2009
Of course you will need to poll all Objects to see if any have that value. You'd use 'if (isMember(o, "C"))' to find that out.

  • Louie

isMember if the attribute using the defined attribute type is a multi-value attribute